/*
 * ClientSendingThread.h
 *
 *  Created on: Nov 5, 2012
 *      Author: lucas
 */

#ifndef CLIENTSENDINGTHREAD_H_
#define CLIENTSENDINGTHREAD_H_
#include "../common/BlockingQueue.h"
#include "../common/Thread.h"
#include <string>
class CommunicationSocket;
class Client;


class ClientSendingThread : public Thread {
private:
	BlockingQueue<std::string> sendingQueue;
	CommunicationSocket& sck;
	Client& client;
public:
	ClientSendingThread(CommunicationSocket& csck, Client& c);
	virtual ~ClientSendingThread();
	void ejecutar();
	void send(std::string& msg);
};


#endif /* CLIENTSENDINGTHREAD_H_ */
